using System;

namespace Metar.NET
{
	public class Length
	{
        public enum UNITS{FEET=0,KM,METER,MILES}
        private double meter  = 0;
        private double km     = 0;
        private double ft     = 0;
        private double miles  = 0;

        public double Meter
        {
            get
            {
                return this.meter;
            }
            set
            {
                this.meter=value;
                this.km=this.meter/1000;
                this.ft=this.meter*3.2808;
                this.miles=this.meter*6.2e-4;
            }
        }
        public double Km
        {
            get
            {
                return this.km;
            }
            set
            {
                this.km=value;
                this.Meter=this.km*1000;
            }
        }
        public double Ft
        {
            get
            {
                return this.ft;
            }
            set
            {
                this.ft=value;
                this.Meter=this.ft/3.2808;
            }
        }
        public double Miles
        {
            get
            {
                return this.miles;
            }
            set
            {
                this.miles=value;
                this.meter=this.miles/6.2e-4;
            }
        }
		public Length()
		{
			//
			// TODO: Add constructor logic here
			//
		}
	}
}
